package cn.tedu.ba04;


import cn.tedu.ba02.Student;

//目标类
public class SomeServiceImpl implements SomeService {
    @Override
    public void doSome(String name, Integer age) {
        //在doSome()之前增加一个输出当前时间的功能
        System.out.println("===目标方法doSome()===");
    }

    @Override
    public String doOther(String name, Integer age) {
        System.out.println("==目标方法doOther()====");
        return "abcd";
    }

    @Override
    public Student doOther02(String name, Integer age) {
        System.out.println("==目标方法返回一个对象==");
        Student student = new Student();
        student.setName("诸葛亮");
        return student;
    }

    @Override
    public String doFirst(String name, Integer age) {
        System.out.println("===目标方法doFirst()===");
        return "abcd";
    }
}
